package cn.boge.hrm.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterDTO {
    @NotEmpty(message = "手机号不能为空")
    private String mobile;//手机号
    @NotEmpty(message = "密码不能为空")
    private String password;//密码
    @NotNull(message = "非法请求")
    private Integer regChannel;//注册渠道
    @NotEmpty(message = "短信验证码不能为空")
    private String smsCode;//短信验证码
}
